namespace Auth.Application.DTO.Input
{
    /// <summary>
    /// 分页查询输入参数
    /// </summary>
    public class PageInput
    {
        private int _pagingIndex = 1;
        private int _pagingSize = 10;

        /// <summary>
        /// 页码（从1开始）
        /// </summary>
        public int PagingIndex
        {
            get => _pagingIndex;
            set => _pagingIndex = value > 0 ? value : 1;
        }

        /// <summary>
        /// 每页大小
        /// </summary>
        public int PagingSize
        {
            get => _pagingSize;
            set => _pagingSize = (value > 0 && value <= 100) ? value : 10;
        }
    }
} 